package cn.itsource.itsource.service.impl;

import cn.itsource.itsource.domain.UserAddress;
import cn.itsource.itsource.mapper.UserAddressMapper;
import cn.itsource.itsource.service.IUserAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class UserAddressServiceImpl implements IUserAddressService {
    @Autowired
    private UserAddressMapper userAddressMapper;

    @Override
    public List<UserAddress> findAllByUserId(Long id) {
        return userAddressMapper.findAllByUserId(id);
    }
}
